package com.esc.mapper;

import com.esc.model.Buyer;
import com.esc.model.Seller;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SellerMapper {
    int deleteByPrimaryKey(Integer sellerid);

    int insert(Seller record);

    int insertSelective(Seller record);

    Buyer selectByPrimaryKey(Integer sellerid);

    int updateByPrimaryKeySelective(Seller record);

    int updateByPrimaryKey(Seller record);

    int queryCount(@Param("queryId") Integer queryId);

    List<Seller> querySellerList(@Param("start") int startIndex, @Param("size") int rows, @Param("queryId")Integer queryId);

    void updateSellerStauts(@Param("sellerid") Integer sellerid,@Param("sid") Integer status);

    Seller querySellerById(@Param("sellerid") Integer sellerid);

    void updateSeller(Seller seller);
}
